//
//  JTQuickLoginButton.m
//  百思不得姐
//
//  Created by Robin Zhang on 2016/12/18.
//  Copyright © 2016年 BeiJingWangDianJieTong. All rights reserved.
//

#import "JTQuickLoginButton.h"

@implementation JTQuickLoginButton

- (void)awakeFromNib {
    [super awakeFromNib];
    
    [self.titleLabel setTextAlignment:NSTextAlignmentCenter];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    /* 1 */
    [self.imageView setJt_y:0];
    [self.imageView setJt_centerX:self.jt_width * 0.5];
    
    /* 2 */
    // 宽度与UIButton等宽，高度为UIButton去除UIImageView的剩余部分
    [self.titleLabel setFrame:CGRectMake(0, self.imageView.jt_bottom, self.jt_width, self.jt_height - self.imageView.jt_bottom)];
}

@end
